'''
import wx
import wx.adv

class MyTaskBar(wx.adv.TaskBarIcon):
    currentImage = -1
    def __init__(self):
        wx.adv.TaskBarIcon.__init__(self)
        self.SetIcon(wx.Icon("ICONPATH"))

class MyFrame(wx.Frame):
    def __init__(self):
        wx.Frame.__init__(self, None)
        self.taskBarIcon = MyTaskBar()

app = wx.App()
frm = MyFrame()
app.MainLoop()
'''

from _thread import start_new_thread as createThread
import os

def runServiceProvider():
    os.system("python \"" + os.getcwd() + "\\service\\serviceProvider.py\"")

def runBackend():
    os.system("python \"" + os.getcwd() + "\\backend\\main.py\"")
print("Starting...")

print("Service Provider Starting...")
createThread(runServiceProvider, tuple())
print("Service Provider Started!")

print("Backend Starting...")
createThread(runBackend, tuple())
print("Backend Started!")

while True:
    s = input()
    if s == "exit":
        break